package com.hcyy.entity;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class ZengSong {
	private Integer fid;
	private Integer fkind;
	private String spid;
	private Integer fqty;
	private String tip;
	private String zs_spid;
	private String zs_spmch;
	private String zs_dw;
	private double zs_qty;
	private String sjfw;
	private String fstarttime;
	private String fendtime;
	public Integer getFid() {
		return fid;
	}
	public void setFid(Integer fid) {
		this.fid = fid;
	}
	public Integer getFkind() {
		return fkind;
	}
	public void setFkind(Integer fkind) {
		this.fkind = fkind;
	}
	public String getSpid() {
		return spid;
	}
	public void setSpid(String spid) {
		this.spid = spid;
	}
	public Integer getFqty() {
		return fqty;
	}
	public void setFqty(Integer fqty) {
		this.fqty = fqty;
	}
	public String getTip() {
		return tip;
	}
	public void setTip(String tip) {
		this.tip = tip;
	}
	public String getZs_spid() {
		return zs_spid;
	}
	public void setZs_spid(String zs_spid) {
		this.zs_spid = zs_spid;
	}
	public String getZs_spmch() {
		return zs_spmch;
	}
	public void setZs_spmch(String zs_spmch) {
		this.zs_spmch = zs_spmch;
	}
	public String getZs_dw() {
		return zs_dw;
	}
	public void setZs_dw(String zs_dw) {
		this.zs_dw = zs_dw;
	}
	public double getZs_qty() {
		return zs_qty;
	}
	public void setZs_qty(double zs_qty) {
		this.zs_qty = zs_qty;
	}
	public String getSjfw() {
		return sjfw;
	}
	public void setSjfw(String sjfw) {
		this.sjfw = sjfw;
	}
	public String getFstarttime() {
		return fstarttime;
	}
	public void setFstarttime(String fstarttime) {
		/*SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			fstarttime=sdf.format(sdf.parse(fstarttime));
		} catch (ParseException e) {
			e.printStackTrace();
		}*/
		this.fstarttime = formatTime(fstarttime);
	}
	public String getFendtime() {
		return fendtime;
	}
	public void setFendtime(String fendtime) {
		/*SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			fendtime=sdf.format(sdf.parse(fendtime));
		} catch (ParseException e) {
			e.printStackTrace();
		}*/
		this.fendtime = formatTime(fendtime);;
	}
	
	private String formatTime(String time){
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			return sdf.format(sdf.parse(time));
		} catch (ParseException e) {
			e.printStackTrace();
			return time;
		}
	}
}
